home *** CD-ROM | disk | FTP | other *** search
- /* Put.daftp */
- /* uses DaFTP to put file <file> to directory <dir> to site <site>
- * of your hotlist
- * By Osma Ahvenlampi
- */
- parse arg file site dir ascii
-
- if file = "" then
- exit 10
-
- if ~show('P','daftp') then do
- address command 'Run >NIL: DaFTP'
- address command 'WaitForPort daftp >NIL:'
- if RC ~= 0 then
- exit 20
- end
-
- if ascii ~= "" then
- mode = "ASCII"
- else
- mode = "BIN"
-
- address 'daftp'
-
- if site ~= "" then
- 'site' site
-
- if dir ~= "" then
- 'setattr remotedir' dir
-
- 'connect noscan'
- 'put' mode 'file' file
- 'disconnect'
-
- exit 0
-